import request from '../request.js';

// 获取赛事列表
export const getEventList = () => {
  return request({
    url: '/event/getAllEventList',
    method: 'get',
  });
};



export const getEventById = (id) => {
  return request({
    url: '/event/getEventById',
    method: 'get',
	params: { id }
  });
}

//赛事报名
  export function signUp(data) {
    return request({
      url: '/event/signUp',
      method: 'post',
      data: data
    })
  }
  
  //订单支付
  export function updateOrderStatus(id) {
    return request({
      url: '/event/updatePaymentStatus',
      method: 'put',
      params: { 
        id
      }
    });
  }